// ignore_for_file: deprecated_member_use

import 'package:flutter/material.dart';
import 'package:flutter_widget/custom/custom_appbar.dart';

// ignore: must_be_immutable
class ListTitlePage extends StatelessWidget {
  String name;
  ListTitlePage({Key? key, required this.name}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CustomAppbar(name, Theme.of(context).primaryColor),
      body: Center(
        child: Column(
          children: [
            Padding(
              padding: const EdgeInsets.all(16.0),
              child: Card(
                shadowColor: Colors.grey, // 阴影颜色
                elevation: 5.0, // 阴影深度
                child: Column(
                  // ignore: prefer_const_literals_to_create_immutables
                  children: [
                    Container(
                      alignment: Alignment.center,
                      child: const Text('中央国际城'),
                      height: 100,
                      width: double.infinity,
                    ),
                  ],
                ),
              ),
            ),
            const Padding(
              padding: EdgeInsets.all(16.0),
              child: ListTile(
                leading: Icon(Icons.ac_unit), // 左侧图标按钮
                title: Text('标题'),
                tileColor: Colors.grey,
                subtitle: Text('副标题'),
                trailing: Icon(Icons.add), // 右侧图标按钮
              ),
            )
          ],
        ),
      ),
    );
  }
}
